package com.ruoyi.bl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bl.mapper.HistorychatMapper;
import com.ruoyi.bl.domain.Historychat;
import com.ruoyi.bl.service.IHistorychatService;

/**
 * 历史对话Service业务层处理
 * 
 * @author zhanghao
 * @date 2025-03-04
 */
@Service
public class HistorychatServiceImpl implements IHistorychatService 
{
    @Autowired
    private HistorychatMapper historychatMapper;

    /**
     * 查询历史对话
     * 
     * @param id 历史对话主键
     * @return 历史对话
     */
    @Override
    public Historychat selectHistorychatById(Long id)
    {
        return historychatMapper.selectHistorychatById(id);
    }

    /**
     * 查询历史对话列表
     * 
     * @param historychat 历史对话
     * @return 历史对话
     */
    @Override
    public List<Historychat> selectHistorychatList(Historychat historychat)
    {
        return historychatMapper.selectHistorychatList(historychat);
    }

    /**
     * 新增历史对话
     * 
     * @param historychat 历史对话
     * @return 结果
     */
    @Override
    public int insertHistorychat(Historychat historychat)
    {
        return historychatMapper.insertHistorychat(historychat);
    }

    /**
     * 修改历史对话
     * 
     * @param historychat 历史对话
     * @return 结果
     */
    @Override
    public int updateHistorychat(Historychat historychat)
    {
        return historychatMapper.updateHistorychat(historychat);
    }

    /**
     * 批量删除历史对话
     * 
     * @param ids 需要删除的历史对话主键
     * @return 结果
     */
    @Override
    public int deleteHistorychatByIds(Long[] ids)
    {
        return historychatMapper.deleteHistorychatByIds(ids);
    }

    /**
     * 删除历史对话信息
     * 
     * @param id 历史对话主键
     * @return 结果
     */
    @Override
    public int deleteHistorychatById(Long id)
    {
        return historychatMapper.deleteHistorychatById(id);
    }
}
